#ifndef SECTION_H
#define SECTION_H

#include <QTabWidget>
#include <QMainWindow>
#include <vector>

#include "Data.h"

class Section : public QTabWidget
{
    Q_OBJECT

    public:
    Section();	// Constructeur
    Section(QMainWindow *parent = 0);   // Constructeur
    // Methodes
    QString askSectionName();

    public slots:
    void addSection();
    void deleteSection();
    void addData();


    private:
    // Attributs
    int m_nbSection;
    QTabWidget *m_tabs;
    std::vector<QString> m_sectionNamesTab;
    QWidget *m_page;
    Data *m_data;


};


#endif // SECTION_H
